package com.isesol.ime.rest.api;

import com.google.common.collect.*;
import com.isesol.api.rest.annoations.*;
import com.isesol.api.rest.model.base.*;
import com.isesol.ime.service.*;
import org.springframework.stereotype.*;
import org.springframework.transaction.annotation.*;

import javax.annotation.*;
import java.util.*;

/**
 * 机床类型管理
 *
 * @author
 */
@Service
@RestServiceClass(url = "ime")
public class EventResource extends BusinessResources{

	@Resource
	EventService eventService;

	@Transactional
	@RestServiceMethod(url = "event/get")
	public Map get(@RestParam(name = "id") String id) throws Exception{

		LOGGER.info("【EVENT】event/get接口调用");

		Map eventMap = Maps.newHashMap();
		eventMap.put("eventData", eventService.getEvents(id));

		return eventMap;
	}

}
